package com.yueqian.exception;

/**
 * @author shkstart
 * @create 2021-01-14 16:32
 */
public class Test {
    public static void main(String[] args) {
        INN inn = new INN(3);
        try {

            inn.push("a");
            inn.push("b");
            inn.push("c");
            inn.push("d");
        } catch (FullINNExecption e) {
            e.printStackTrace();
        } finally {
            System.out.println(inn);

        }

        try {

            inn.pop();
            inn.pop();
            inn.pop();
        } catch (EmptyINNException e) {
            e.printStackTrace();
        } finally {

            System.out.println(inn);
        }


    }
}
